package com.xiu.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xiu.mapper.ExamUserMapper;
import com.xiu.pojo.ExamUser;

@Service
public class LoginService {

	@Autowired
	ExamUserMapper examUserMapper;
	
	//登录验证
	public ExamUser login(ExamUser examUser){
		return examUserMapper.login(examUser);
	}
	
	//查询角色
	public ExamUser findRoles(int examNumber){
		return examUserMapper.findRoles(examNumber);
	}
	
}
